package com.xr.pojo;

import java.io.Serializable;
import java.util.Set;

public class Role implements Serializable {
    private Integer id;

    private String name;

    private String keyword;

    private String description;

    //权限
    private Set<Permission> permissionSets;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword == null ? null : keyword.trim();
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    public Set<Permission> getPermissionSets() {
        return permissionSets;
    }

    public void setPermissionSets(Set<Permission> permissionSets) {
        this.permissionSets = permissionSets;
    }
}
